//
//  XJSureOrderViewController.h
//  XinJiangMall
//
//  Created by RaoBo on 2018/6/11.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "BaseViewController.h"

//定义一个枚举判断是从哪个控制器进来的。 //判断是从那个控制进来的 "pay/prepay 的 'code'字段如果是直接购买传0,从待支付页面进入传1"
typedef NS_ENUM(NSInteger,XJComeFromType){
    XJComeFromTypeRBGoodsDetailViewController, //商品详情进来的。
    XJComeFromTypeXJShopCartViewController //从购物车进来的。
};

@interface XJSureOrderViewController : BaseViewController
// 说明：同一个接口从不同的界面跳转进来传的参数不同。
/**标记从那个控制器进来的*/
@property (nonatomic, assign) XJComeFromType comeFromVC;


/**这是从商品详情--点击立即购买进来的 order/balance 接口 请求参数
 {
 "goods_id" = 140;
 "option_id" = 131;
 quantity = 1;
 "shop_id" = 11;
 }
 */
@property(nonatomic, strong) NSDictionary *parDic;

/**这是从购物车进来传递参数
 {
 "cart_ids": "231,232,233,234",
 "quantities": "6,1,1,1"
 }
 */
@property(nonatomic, strong) NSDictionary *cartDic;



@end

#pragma mark -
/**

 {
 "data" : {
 "content" : {
 "total_fee" : 10,
 "shop" : [
 {
 "id" : 11,
 "shop_address" : "无",
 "free_goods_amount" : 20,
 "shipping_type" : 0,
 "org_shipping_type" : 0,
 "lat" : 30.194659999999999,
 "express_fee" : 0,
 "total_quantity" : 1,
 "lng" : 120.189125,
 "total_goods_fee" : 10,
 "goods" : [
 {
 "is_delete" : 0,
 "is_recommend" : 1,
 "id" : 140,
 "praise_rate" : 0,
 "cost_price" : 0,
 "dispatch_fee" : 0,
 "dispatch_type" : 0,
 "description" : "<p>无<\/p>",
 "detail" : "无",
 "shop_id" : 11,
 "admin_name" : "张三",
 "cover" : "http:\/\/static.zertone1.com\/c3QNDIRqqim9m3zhtRqpSquiAoTnuH25.png?imageView2\/2\/w\/400\/h\/400",
 "create_time" : 1527563708563,
 "offsale_time" : 1527583222357,
 "audit_status" : 2,
 "praise_count" : 0,
 "goods_type" : 1,
 "pay_count" : 7,
 "name" : "iOS测试商品1",
 "code" : "987",
 "category_name" : "土豆",
 "comment_count" : 0,
 "scekill_status" : 1,
 "dispatch_id" : 0,
 "images" : "http:\/\/static.zertone1.com\/3Q3lzuL2zA46ev3Alg6CdfH6IDxsXztJ.jpg?imageView2\/2\/w\/1000\/h\/1000,http:\/\/static.zertone1.com\/YS9IzfHGIYvIMf8vCqAW0P5tVqAODJoR.png?imageView2\/2\/w\/1000\/h\/1000",
 "price" : 10,
 "active" : 1,
 "admin_id" : 1,
 "shop_name" : "小何店铺",
 "shop_category_name" : "视频",
 "quantity" : 1,
 "market_price" : 20,
 "free_goods_amount" : 20,
 "shop_goods_category_id" : 12,
 "on_sale" : 1,
 "stock" : 52,
 "category_id" : 8,
 "weight" : 0,
 "sale_count" : 0,
 "click_count" : 0,
 "root_category_id" : 7
 }
 ],
 "name" : "小何店铺"
 }
 ],
 "customer" : {
 "balance" : 0,
 "customer_id" : 7
 },
 "address" : null
 }
 },
 "code" : 0
 }
 

 */
